﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008A5 RID: 2213
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GOIPOKFHFBM : IMessage<GOIPOKFHFBM>, IMessage, IEquatable<GOIPOKFHFBM>, IDeepCloneable<GOIPOKFHFBM>, IBufferMessage
	{
		// Token: 0x17001BD6 RID: 7126
		// (get) Token: 0x060062E1 RID: 25313 RVA: 0x00106655 File Offset: 0x00104855
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GOIPOKFHFBM> Parser
		{
			get
			{
				return GOIPOKFHFBM._parser;
			}
		}

		// Token: 0x17001BD7 RID: 7127
		// (get) Token: 0x060062E2 RID: 25314 RVA: 0x0010665C File Offset: 0x0010485C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GOIPOKFHFBMReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001BD8 RID: 7128
		// (get) Token: 0x060062E3 RID: 25315 RVA: 0x0010666E File Offset: 0x0010486E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GOIPOKFHFBM.Descriptor;
			}
		}

		// Token: 0x060062E4 RID: 25316 RVA: 0x00106675 File Offset: 0x00104875
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GOIPOKFHFBM()
		{
		}

		// Token: 0x060062E5 RID: 25317 RVA: 0x0010667D File Offset: 0x0010487D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GOIPOKFHFBM(GOIPOKFHFBM other) : this()
		{
			this.miracleInfo_ = ((other.miracleInfo_ != null) ? other.miracleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060062E6 RID: 25318 RVA: 0x001066B2 File Offset: 0x001048B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GOIPOKFHFBM Clone()
		{
			return new GOIPOKFHFBM(this);
		}

		// Token: 0x17001BD9 RID: 7129
		// (get) Token: 0x060062E7 RID: 25319 RVA: 0x001066BA File Offset: 0x001048BA
		// (set) Token: 0x060062E8 RID: 25320 RVA: 0x001066C2 File Offset: 0x001048C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameRogueMiracle MiracleInfo
		{
			get
			{
				return this.miracleInfo_;
			}
			set
			{
				this.miracleInfo_ = value;
			}
		}

		// Token: 0x060062E9 RID: 25321 RVA: 0x001066CB File Offset: 0x001048CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GOIPOKFHFBM);
		}

		// Token: 0x060062EA RID: 25322 RVA: 0x001066D9 File Offset: 0x001048D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GOIPOKFHFBM other)
		{
			return other != null && (other == this || (object.Equals(this.MiracleInfo, other.MiracleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060062EB RID: 25323 RVA: 0x0010670C File Offset: 0x0010490C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.miracleInfo_ != null)
			{
				num ^= this.MiracleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060062EC RID: 25324 RVA: 0x00106748 File Offset: 0x00104948
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060062ED RID: 25325 RVA: 0x00106750 File Offset: 0x00104950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060062EE RID: 25326 RVA: 0x00106759 File Offset: 0x00104959
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.miracleInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.MiracleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060062EF RID: 25327 RVA: 0x0010678C File Offset: 0x0010498C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.miracleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.MiracleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060062F0 RID: 25328 RVA: 0x001067CC File Offset: 0x001049CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GOIPOKFHFBM other)
		{
			if (other == null)
			{
				return;
			}
			if (other.miracleInfo_ != null)
			{
				if (this.miracleInfo_ == null)
				{
					this.MiracleInfo = new GameRogueMiracle();
				}
				this.MiracleInfo.MergeFrom(other.MiracleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060062F1 RID: 25329 RVA: 0x00106820 File Offset: 0x00104A20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060062F2 RID: 25330 RVA: 0x0010682C File Offset: 0x00104A2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.miracleInfo_ == null)
					{
						this.MiracleInfo = new GameRogueMiracle();
					}
					input.ReadMessage(this.MiracleInfo);
				}
			}
		}

		// Token: 0x040025C7 RID: 9671
		private static readonly MessageParser<GOIPOKFHFBM> _parser = new MessageParser<GOIPOKFHFBM>(() => new GOIPOKFHFBM());

		// Token: 0x040025C8 RID: 9672
		private UnknownFieldSet _unknownFields;

		// Token: 0x040025C9 RID: 9673
		public const int MiracleInfoFieldNumber = 5;

		// Token: 0x040025CA RID: 9674
		private GameRogueMiracle miracleInfo_;
	}
}
